package com.zhike.api.task;

import org.springframework.stereotype.Component;

import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;


@Component
@Slf4j
public class MessageToEsTask {

    @SneakyThrows
    @XxlJob("saveToEsJobHandler")
    public ReturnT<String> saveToEs() {        
        log.info("save to es ");
        //TODO
        return ReturnT.SUCCESS;
    }
}
